home *** CD-ROM | disk | FTP | other *** search
- package java.lang;
-
- import java.io.BufferedInputStream;
- import java.io.BufferedOutputStream;
- import java.io.FileDescriptor;
- import java.io.FileInputStream;
- import java.io.FileOutputStream;
- import java.io.InputStream;
- import java.io.PrintStream;
- import java.util.Properties;
-
- public final class System {
- // $FF: renamed from: in java.io.InputStream
- public static InputStream field_0;
- public static PrintStream out;
- public static PrintStream err;
- private static SecurityManager security;
- private static Properties props;
-
- private System() {
- }
-
- public static void setSecurityManager(SecurityManager var0) {
- if (security != null) {
- throw new SecurityException("SecurityManager already set");
- } else {
- security = var0;
- }
- }
-
- public static SecurityManager getSecurityManager() {
- return security;
- }
-
- public static native long currentTimeMillis();
-
- public static native void arraycopy(Object var0, int var1, Object var2, int var3, int var4);
-
- private static native Properties initProperties(Properties var0);
-
- public static Properties getProperties() {
- if (props == null) {
- props = initProperties(new Properties());
- }
-
- if (security != null) {
- security.checkPropertiesAccess();
- }
-
- return props;
- }
-
- public static void setProperties(Properties var0) {
- if (security != null) {
- security.checkPropertiesAccess();
- }
-
- props = var0;
- }
-
- public static String getProperty(String var0) {
- if (security != null) {
- security.checkPropertyAccess(var0);
- }
-
- if (props == null) {
- props = initProperties(new Properties());
- }
-
- return props.getProperty(var0);
- }
-
- public static String getProperty(String var0, String var1) {
- if (security != null) {
- security.checkPropertyAccess(var0);
- }
-
- if (props == null) {
- props = initProperties(new Properties());
- }
-
- return props.getProperty(var0, var1);
- }
-
- public static String getenv(String var0) {
- throw new Error("getenv no longer supported, use properties and -D instead: " + var0);
- }
-
- public static void exit(int var0) {
- Runtime.currentRuntime.exit(var0);
- }
-
- // $FF: renamed from: gc () void
- public static void method_0() {
- Runtime.currentRuntime.gc();
- }
-
- public static void runFinalization() {
- Runtime.currentRuntime.runFinalization();
- }
-
- public static void load(String var0) {
- Runtime.currentRuntime.load(var0);
- }
-
- public static void loadLibrary(String var0) {
- Runtime.currentRuntime.loadLibrary(var0);
- }
-
- static {
- try {
- Runtime var0 = Runtime.getRuntime();
- field_0 = var0.getLocalizedInputStream(new BufferedInputStream(new FileInputStream(FileDescriptor.in), 128));
- out = new PrintStream(var0.getLocalizedOutputStream(new BufferedOutputStream(new FileOutputStream(FileDescriptor.out), 128)), true);
- err = new PrintStream(var0.getLocalizedOutputStream(new BufferedOutputStream(new FileOutputStream(FileDescriptor.err), 128)), true);
- } catch (Exception var1) {
- throw new Error("can't initialize stdio");
- }
- }
- }
-